<template>
  <div id="app">
    <el-container>
      <!-- 主要内容 -->
        <el-aside width="200px">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          router>
          <el-menu-item index="/home">
            <i class="el-icon-menu"></i>
            <span slot="title">首页</span>
          </el-menu-item>

          <el-submenu index="/Config">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>配置管理</span>
                  </template>
                    <el-menu-item index="/config">选项1</el-menu-item>
                    <el-menu-item index="/about">选项2</el-menu-item>
                  </el-submenu>

          <el-menu-item index="/application">
            <i class="el-icon-menu"></i>
            <span slot="title">应用管理</span>
          </el-menu-item>
          
        </el-menu>
  </el-aside>
  <!-- 头部 -->
  <el-container>
    <el-header>Header</el-header>
    <el-main>
      <router-view/>
    </el-main>
    <!-- 页尾 -->
    <el-footer>Footer</el-footer>
  </el-container>
</el-container>

  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
.el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    /* line-height: 160px; */
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
